/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ecomp.uefs.micc.sharedbox.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author emanuel
 */
public class SharedFile implements Serializable{
    
    private String filename;
    private String owner;
    private String path;
    private List SHARING_LIST;
    private boolean state;
    
    public SharedFile(){
        SHARING_LIST = new ArrayList();
    }
    
    public void addShare(String user){
        getSHARING_LIST().add(user);
    }

    /**
     * @return the filename
     */
    public String getFilename() {
        return filename;
    }

    /**
     * @param filename the filename to set
     */
    public void setFilename(String filename) {
        this.filename = filename;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * @return the SHARING_LIST
     */
    public List getSHARING_LIST() {
        return SHARING_LIST;
    }

    /**
     * @param SHARING_LIST the SHARING_LIST to set
     */
    public void setSHARING_LIST(List SHARING_LIST) {
        this.SHARING_LIST = SHARING_LIST;
    }

    /**
     * @return the state
     */
    public boolean isState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(boolean state) {
        this.state = state;
    }

    /**
     * @return the owner
     */
    public String getOwner() {
        return owner;
    }

    /**
     * @param owner the owner to set
     */
    public void setOwner(String owner) {
        this.owner = owner;
    }
    
}
